﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 车位交易信息表
    /// </summary>
    [Table("T_Parking_Deal")]
    public class ParkingDeal:BaseEntity
    {

        /// <summary>
        /// 车位Id ,停车场信息表外键
        /// </summary>
        [ForeignKey(nameof(ParkingId))]
        public int Parkingid { get; set; }
        public Material ParkingId { get; set; }
        /// <summary>
        /// 销售性质
        /// </summary>
        public bool SalesNature { get; set; }
        /// <summary>
        /// 销售金额
        /// </summary>
        public double SalesAmount { get; set; }
        /// <summary>
        /// 销售人
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(100)]
        public string SalesPeople { get; set; }
    }
}
